package com.weiai.wedding.util;

import java.util.Map;
import com.google.common.collect.Maps;

/**
 * 资源表资源类型枚举
 *
 */
public enum ResourcesType {
	RESOURCES_TYPE_O("1","公共"),RESOURCES_TYPE_T("2","私有");
	
	public String typeValue;
	
	public String typeText;
	
	private static Map<String,ResourcesType> valueMap = Maps.newHashMap();
	
	static {
		for(ResourcesType type:ResourcesType.values()){
			valueMap.put(type.typeValue, type);
		}
	}
	
	ResourcesType(String typeValue,String typeText){
		this.typeValue = typeValue;
		this.typeText = typeText;
	}

	public static ResourcesType get(String typeValue){
		
		return valueMap.get(typeValue);
	}
	
	public String getTypeValue(){
		
		return typeValue;
	}
	
	public String getTypeText(){
		return typeText;
	}
	
}
